import dayjs from "dayjs";
import { clone } from "@pureadmin/utils";

const date = dayjs(new Date()).format("YYYY-MM-DD");
const tableDataTemp = [
  {
    id: 1,
    certificateNumber: "223456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "10,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-06",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/1.jpg"
  },
  {
    id: 2,
    certificateNumber: "323456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "900,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-05",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/2.jpg"
  },
  {
    id: 3,
    certificateNumber: "423456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-04",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/3.jpg"
  },
  {
    id: 4,
    certificateNumber: "523456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-03",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/4.jpg"
  },
  {
    id: 5,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-01",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/5.jpg"
  },
  {
    id: 6,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-02",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/6.jpg"
  },
  {
    id: 7,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-07",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/7.jpg"
  },
  {
    id: 8,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-08",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/8.jpg"
  },
  {
    id: 9,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-09",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/9.jpg"
  },
  {
    id: 10,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-10",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/10.jpg"
  },
  {
    id: 11,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-11",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/1.jpg"
  },
  {
    id: 12,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-12",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/2.jpg"
  },
  {
    id: 13,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-13",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/3.jpg"
  },
  {
    id: 14,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-14",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/4.jpg"
  },
  {
    id: 15,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-15",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/5.jpg"
  },
  {
    id: 16,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-16",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/6.jpg"
  },
  {
    id: 17,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-17",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/7.jpg"
  },
  {
    id: 18,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-18",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/8.jpg"
  },
  {
    id: 19,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-19",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/9.jpg"
  },
  {
    id: 20,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-20",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/10.jpg"
  },
  {
    id: 21,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-21",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/1.jpg"
  },
  {
    id: 22,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-22",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/2.jpg"
  },
  {
    id: 23,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-23",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/3.jpg"
  },
  {
    id: 24,
    certificateNumber: "123456789",
    certificateType: "建筑业",
    companyName: "北京市建筑工程有限公司",
    detailAddress: "北京市朝阳区",
    legalRepresentative: "张三",
    registeredCapital: "1,000,000,000",
    economicNature: "国有企业",
    validityPeriod: "2025-01-24",
    qualificationCategoryAndLevel: "建筑工程施工总承包特级",
    remark: "备注信息",
    imageUrl: "https://pure-admin.github.io/pure-admin-table/imgs/4.jpg"
  }
];
const tableData = [
  {
    date,
    name: "Tom",
    address: "No. 189, Grove St, Los Angeles"
  },
  {
    date,
    name: "Jack",
    address: "No. 189, Grove St, Los Angeles"
  },
  {
    date,
    name: "Dick",
    address: "No. 189, Grove St, Los Angeles"
  },
  {
    date,
    name: "Harry",
    address: "No. 189, Grove St, Los Angeles"
  },
  {
    date,
    name: "Sam",
    address: "No. 189, Grove St, Los Angeles"
  },
  {
    date,
    name: "Lucy",
    address: "No. 189, Grove St, Los Angeles"
  },
  {
    date,
    name: "Mary",
    address: "No. 189, Grove St, Los Angeles"
  },
  {
    date,
    name: "Mike",
    address: "No. 189, Grove St, Los Angeles"
  }
];

const cloneData = clone(tableDataTemp, true);

const tableDataMore = cloneData.map(item =>
  Object.assign(item, {
    state: "California",
    city: "Los Angeles",
    "post-code": "CA 90036"
  })
);

const tableDataImage = cloneData.map((item, index) =>
  Object.assign(item, {
    image: `https://pure-admin.github.io/pure-admin-table/imgs/${index + 1}.jpg`
  })
);

const tableDataSortable = cloneData.map((item, index) =>
  Object.assign(item, {
    date: `${dayjs(new Date()).format("YYYY-MM")}-${index + 1}`
  })
);

const tableDataExpand = [
  {
    date: "2016-05-03",
    name: "Tom",
    state: "California",
    city: "San Francisco",
    address: "3650 21st St, San Francisco",
    zip: "CA 94114",
    family: [
      {
        name: "Jerry",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Spike",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Tyke",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      }
    ]
  },
  {
    date: "2016-05-02",
    name: "Tom",
    state: "California",
    city: "San Francisco",
    address: "3650 21st St, San Francisco",
    zip: "CA 94114",
    family: [
      {
        name: "Jerry",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Spike",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Tyke",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      }
    ]
  },
  {
    date: "2016-05-04",
    name: "Tom",
    state: "California",
    city: "San Francisco",
    address: "3650 21st St, San Francisco",
    zip: "CA 94114",
    family: [
      {
        name: "Jerry",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Spike",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Tyke",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      }
    ]
  },
  {
    date: "2016-05-01",
    name: "Tom",
    state: "California",
    city: "San Francisco",
    address: "3650 21st St, San Francisco",
    zip: "CA 94114",
    family: [
      {
        name: "Jerry",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Spike",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Tyke",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      }
    ]
  },
  {
    date: "2016-05-08",
    name: "Tom",
    state: "California",
    city: "San Francisco",
    address: "3650 21st St, San Francisco",
    zip: "CA 94114",
    family: [
      {
        name: "Jerry",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Spike",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Tyke",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      }
    ]
  },
  {
    date: "2016-05-06",
    name: "Tom",
    state: "California",
    city: "San Francisco",
    address: "3650 21st St, San Francisco",
    zip: "CA 94114",
    family: [
      {
        name: "Jerry",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Spike",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Tyke",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      }
    ]
  },
  {
    date: "2016-05-07",
    name: "Tom",
    state: "California",
    city: "San Francisco",
    address: "3650 21st St, San Francisco",
    zip: "CA 94114",
    family: [
      {
        name: "Jerry",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Spike",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      },
      {
        name: "Tyke",
        state: "California",
        city: "San Francisco",
        address: "3650 21st St, San Francisco",
        zip: "CA 94114"
      }
    ]
  }
];

export {
  tableDataTemp,
  tableData,
  tableDataMore,
  tableDataImage,
  tableDataExpand,
  tableDataSortable
};
